<template>
  <div class="homeTabContent">
    <div class="tab">
      <img src="../../assets/image/codehubLogo.png" alt="" @click="toHome">
      <span>codehub</span>
      <span style="font-size:18px; margin-left:5px">欢迎你 ~</span>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    toHome(){
      this.$router.push('/home')
    }
  }
}
</script>

<style lang="scss" scoped>
.homeTabContent{
  .tab{
    height: 80px;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    img{
      width: 45px;
      margin-left: 100px;
      margin-right: 10px;
      cursor: pointer;
    }
    span{
      font-weight: bold;
      color: #606266;
      font-size: 26px;
    }
  }
  
}
</style>